@mixin scrollStyle() {
  &::-webkit-scrollbar {
    /*滚动条整体样式*/
    width: 10px; /*高宽分别对应横竖滚动条的尺寸*/
    height: 1px;
    position: relative;
    z-index: 4;
  }

  &::-webkit-scrollbar-thumb {
    /*滚动条里面小方块*/
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba($color: #000, $alpha: 0.2);
    background: #535353;
  }

  &::-webkit-scrollbar-track {
    /*滚动条里面轨道*/
    box-shadow: inset 0 0 5px rgba($color: #000, $alpha: 0.2);
    border-radius: 10px;
    background: #ededed;
  }
}
* {
  @include scrollStyle;
}
.App {
  $contentPadding: 10px;
  $contentMargin: 10px;
  $headHeight: 60px;
  $footerHeight: 30px;
  $contentRightWidth: 300px;
  background-image: url($img + "bj.jpg");
  // background-color: #000;
  background-size: auto auto;
  .container {
    width: 1336px;
    margin: 0 auto;
    height: 100vh;
    overflow: hidden;
    position: relative;
    .header {
      height: $headHeight;
      width: 100%;
      background-color: $contentBackgroundColor;
      border-bottom-left-radius: 10px;
      border-bottom-right-radius: 10px;
    }
    .content {
      margin: $contentMargin 0;
      height: calc(100vh - #{$headHeight} - #{$footerHeight} - #{$contentMargin}* 2);
      flex: 1;
      overflow-y: auto;
      position: relative;
      z-index: 1;
      display: flex;

      .content_left {
        width: 100%;
        & > div {
          height: 100%;
          background-color: $contentBackgroundColor;
          border-radius: 10px;
          overflow-y: auto;
          padding: 10px;
          position: relative;
        }
      }
      .content_right {
        margin-left: $contentMargin;
        width: $contentRightWidth;
        background-color: $contentBackgroundColor;
        border-radius: 10px;
        height: 100%;
        overflow-y: auto;
      }
    }
    .footer {
      height: $footerHeight;
      background-color: $contentBackgroundColor;
      border-top-left-radius: 10px;
      border-top-right-radius: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
      a {
        color: #666;
      }
    }
  }
}
